-
-
Notifications
You must be signed in to change notification settings - Fork 469
Fix 4725 summarize dialog cancel #5108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Fix 4725 summarize dialog cancel #5108
Conversation
02a3e56 to
2b73cf5
Compare
…dialog is canceled
2b73cf5 to
0935c0a
Compare
|
@Anish9901 Could you please review it? |
pavish
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@akankshahu This PR introduces a regression.
When the user clicks on the "No do not summarize" button, the column should be added without summarization. This is no longer working in this PR.
This is because the confirm utility treats both closing the modal and the cancel button in the same way, and this particular use-case repurposes cancel to add the column without summarization.
The right way to do this would be to:
- Remove the
confirmutlitiy here - Add a separate Modal which looks the same, but both the buttons act as independent actions, one for adding the column without summarization, and the other for adding the column with summarization.
- Closing that modal should not add the column.
- Created SummarizeColumnModal component with independent action buttons - Removed confirm utility from InputSidebar - 'Yes' button: adds column with summarization - 'No' button: adds column without summarization - Closing modal: does not add column (fixes regression)
eaddb2e to
89d49d5
Compare
|
Hello @pavish ,I tried solving for the issue .Could you please review it? |
Fixes #4725
Checklist
Update index.md).developbranch of the repositoryvisible errors.
Developer Certificate of Origin
Developer Certificate of Origin